<%
# this partial expects:
# * project
# * issue - a valid issue to display
project ||= issue.project
-%>
<div class="issue_summary">
  <p>
    <span class="name"><%= link_to h(issue.summary), issue_path(project.name, issue.local_id) %></span>
    <span class="status">(<%= issue.status ? issue.status.name : ''  %>)<br />
    <span class="attributes">
      <%= project.name %> <span class="value">#<%= issue.local_id.to_s %></span>,
      submitted <%= time_ago_value( issue.created_at ) %>
      by <%= issue.submitter.display %>,
      <%= value( issue.comments.size.to_s ) %> updates
    </span><br />
    <span class="links">
      <ul>
        <li><%= link_to 'View', issue_path( project.name, issue.local_id ) %></li> &ndash;
        <li><%= link_to 'Update', issue_path( project.name, issue.local_id, :anchor => 'comment_form' ) %></li>
      </ul>
    </span>
  </p>
</div>
